package cn.stylefeng.guns.modular.tool.mapper;

import cn.stylefeng.guns.modular.tool.entity.ToolExpressReconciliationFw;
import cn.stylefeng.guns.modular.tool.model.params.ToolExpressReconciliationFwParam;
import cn.stylefeng.guns.modular.tool.model.result.ToolExpressReconciliationFwResult;
import cn.stylefeng.guns.modular.tool.model.result.orderCount;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 丰网对账管理 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2023-01-13
 */
public interface ToolExpressReconciliationFwMapper extends BaseMapper<ToolExpressReconciliationFw> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2023-01-13
     */
    List<ToolExpressReconciliationFwResult> customList(@Param("paramCondition") ToolExpressReconciliationFwParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2023-01-13
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ToolExpressReconciliationFwParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2023-01-13
     */
    Page<ToolExpressReconciliationFwResult> customPageList(@Param("page") Page page, @Param("paramCondition") ToolExpressReconciliationFwParam paramCondition, @Param("condition") String condition
    		,@Param("operateId")Long operateId);

    Page<ToolExpressReconciliationFwResult> findPageBySpecDz(@Param("page") Page page, @Param("paramCondition")ToolExpressReconciliationFwParam param, @Param("condition")String condition);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2023-01-13
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ToolExpressReconciliationFwParam paramCondition);

	List<ToolExpressReconciliationFwResult> findListBySpec(@Param("paramCondition")ToolExpressReconciliationFwParam param);

	void deleteBySpec(@Param("paramCondition")ToolExpressReconciliationFwParam param);

	boolean saveBatchList(@Param("list")List<ToolExpressReconciliationFwParam> list);

	List<orderCount> findorderCount(@Param("paramCondition")ToolExpressReconciliationFwParam param, @Param("operateId")Long operateId);

}
